"""author: mibo
   data: 2020/10/19
   project: pythonProject
"""
# import random
# #
# # def a1():
# #     a = 5
# #     b = 7
# #     nub = 1.0 + a/b
# #     print(nub)
# # def a2():
# #     x = 5
# #     y = 4
# #     z = 3
# #     if(x < z or y < z):
# #         print("成立")
# #     else:
# #         print("不成立")
#
# def game():
#         a = '000000000000'
#         a = list(a)
#         print(a)
#         for i in range (12):
#             a[i] = random.randint(0,1)
#         a = [str(i)for i in a]
#         print("亮灯情况为：",''.join(a))
#         s = random.randint(0,11)
#         print("你打到了第",s+1,"个灯")
#         if a[s]=='1':
#             print("打中啦")
#         else:
#             print("没打中")
# r1 = input("输入r开始游戏")
# if r1=='r':
#     game()


import random
x = random.randint(1,12)
a = random.sample(range(1,12),x)
print("亮灯情况：",a)
b = random.randint(1,12)
print(b)
if b in a :
    print(f"恭喜你！打中了第{b}盏灯")
    print("win!")
else:
    print("很遗憾，你没有打中")
    print("lose...")